package com.xiaoxu.intranetweb.mybatisplusSzappdb.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.entity.TCompeteTender;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.mapper.TCompeteTenderMapper;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.service.ITCompeteTenderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.vo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaoxu
 * @since 2022-12-27
 */
@Service
@DS("szappdb")
public class TCompeteTenderServiceImpl extends ServiceImpl<TCompeteTenderMapper, TCompeteTender> implements ITCompeteTenderService {
    @Autowired
    private TCompeteTenderMapper TCompeteTenderMapper;

    @Override
    public List<TCompeteTenderVo> latestWinningBid(String dataFrom) {
        return TCompeteTenderMapper.latestWinningBid(dataFrom);
    }

    @Override
    public List<BidCustomerAnalysisVo> bidCustomerAnalysis(String dataFrom) {
        return TCompeteTenderMapper.bidCustomerAnalysis(dataFrom);
    }


    @Override
    public List<BidCustomerAnalysisVo> winBidCustomerAnalysis(String dataFrom) {
        return TCompeteTenderMapper.winBidCustomerAnalysis(dataFrom);
    }

    @Override
    public List<PlatFormBiddingDetailsVo> platFormBiddingDetails(String dataFrom) {
        return TCompeteTenderMapper.platFormBiddingDetails(dataFrom);
    }

    @Override
    public List<CustomerAnalysisVo> customerAnalysis(String dataFrom) {
        return TCompeteTenderMapper.customerAnalysis(dataFrom);
    }

    @Override
    public List<BasePriceMeanValueVo> basePriceMeanValue(String dataFrom) {
        return TCompeteTenderMapper.basePriceMeanValue(dataFrom);
    }

    @Override
    public List<ComparisonOfBidPricesVo> comparisonOfBidPrices(String dataFrom) {
        return TCompeteTenderMapper.comparisonOfBidPrices(dataFrom);
    }

    @Override
    public List<BidWinningTrendChartVo> bidWinningTrendChart(String dataFrom) {
        return TCompeteTenderMapper.bidWinningTrendChart(dataFrom);
    }
}
